import React, {Component} from 'react';
import {connect} from 'react-redux';
import {loadData} from '../actions/dataAction';


class DataList extends Component {

    constructor(props) {
        super(props);
        console.log(props);
    };


    render() {
        const {prop} = this.props;
        console.log(prop);
        return (
            <ul>
            </ul>
        );
    }
}

const mapStateToProps = (state, props) => {
    return {
        prop: state.data
    }
}

export default connect(mapStateToProps)(DataList);